/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package utils.observer.login;

import utils.observer.Observer;
import utils.nucleo.Nucleo;

/**
 *
 * @author Amauri
 */
public class PrincipalObserver implements Observer {

    @Override
    public void update() {
        if ( !Nucleo.getInstance().isUserLogged()) {
            Nucleo.getInstance().getPrincipal().fecharTela();
        }
    }

}
